package com.ruoyi.kucun.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 库存预警阈值设置对象 inventory_alert
 * 
 * @author Rosou
 * @date 2025-06-17
 */
public class InventoryAlert extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 预警设置ID */
    private Long alertId;

    /** 商品ID（外键） */
    @Excel(name = "商品ID", readConverterExp = "外=键")
    private Long productId;

    /** 库存上限 */
    @Excel(name = "库存上限")
    private Long upperLimit;

    /** 库存下限 */
    @Excel(name = "库存下限")
    private Long lowerLimit;

    /** 设置时间 */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @Excel(name = "设置时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date setTime;

    public void setAlertId(Long alertId) 
    {
        this.alertId = alertId;
    }

    public Long getAlertId() 
    {
        return alertId;
    }

    public void setProductId(Long productId) 
    {
        this.productId = productId;
    }

    public Long getProductId() 
    {
        return productId;
    }

    public void setUpperLimit(Long upperLimit) 
    {
        this.upperLimit = upperLimit;
    }

    public Long getUpperLimit() 
    {
        return upperLimit;
    }

    public void setLowerLimit(Long lowerLimit) 
    {
        this.lowerLimit = lowerLimit;
    }

    public Long getLowerLimit() 
    {
        return lowerLimit;
    }

    public void setSetTime(Date setTime) 
    {
        this.setTime = setTime;
    }

    public Date getSetTime() 
    {
        return setTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("alertId", getAlertId())
            .append("productId", getProductId())
            .append("upperLimit", getUpperLimit())
            .append("lowerLimit", getLowerLimit())
            .append("setTime", getSetTime())
            .toString();
    }
}
